package ${package.Query};

import ${baseQueryPackage}.${baseQueryName};
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * <p>
 * ${table.comment!}查询对象
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Data
public class ${QueryName} extends ${baseQueryName}<${primaryKeyType}> {

    @Serial
    private static final long serialVersionUID = ${serialVersionUIDList[2]}L;

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list QueryFields as field>
    <#if field.date>
    /**
     * ${field.comment}-起始
     */
    private ${field.propertyType} ${field.propertyName}Start;

    /**
     * ${field.comment}-截止
     */
    private ${field.propertyType} ${field.propertyName}End;

    <#else>
    /**
     * ${field.comment}
     */
    private ${field.propertyType} ${field.propertyName};

    </#if>
</#list>
<#-- ----------  END 字段循环遍历  ---------->
}
